<!DOCTYPE html>
<html id="replace-style" lang="zh" xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta http-equiv="X-UA-Compatible" content="ie=edge" />
	<link rel="icon" type="image/x-icon" href="/favicon.ico" th:href="@{/favicon.ico}" >
	<title>资源管理</title>
	
	
	<!-- <link rel='stylesheet' th:href="@{/3thExt/ztree/css/zTreeStyle/zTreeStyle.css}" /> -->
	<link rel='stylesheet' th:href="@{/3thExt/bootstrap-treeview/css/bootstrap-treeview.min.css}" />
	
	
</head>
<body>
<!--头部-->
<header th:replace="common/head" >
</header> 
<!-- 页面指向 -->
<div class="page-point bg-white">
	<ul>
		
		<li>系统管理</li>
		<li>资源管理</li>
	</ul>
</div>
<!-- 菜单树 -->
<div th:replace="common/left" > 
</div>




<!--主体内容-->
<div class="page-container">

	<div class="container-fluid mb-20 clearfix">
		<div class="col-md-12">
			<h2 class="page-section-title">查询条件</h2>
		</div>
	</div>

	<div class="container-fluid query-frame-wrap mb-10 clearfix condition-query">
		<div class="col-lg-3">
			<div class="query-frame">
				<label>资源名称</label>
				<input autocomplete="new-password" type="text"  class="form-control queryRes" id="resName"/>
			</div>
		</div>
		<div class="col-lg-3">
			<div class="query-frame">
				<label>资源类别</label>
				<select id="resType" name="option" class="option query form-control">
					<option value="0">页面</option>
					<option value="1">按钮</option>
				</select>
			</div>
		</div>
		<div class="col-lg-3 col-lg-offset-3">
			<div class="query-frame query-button">
				<img id="queryRes" th:src="@{/image/search.png}"/>
				<img class="queryResReset" th:src="@{/image/rest.png}"/>
			</div>
		</div>
	</div>

	<div class="container-fluid mb-20 clearfix">
		<div class="col-md-12 rlt">
			<h2 class="page-section-title">资源列表</h2>
			<ul class="table-tool">
			    <li data-toggle="modal"  class="addRes" id="addRes">
			        <span class="icon-list_add" aria-hidden="true"></span>
			        <label>新增</label>
			    </li>
			    <li  class="updateRes" id="updateRes">
			        <span class="icon-list_xiugai" aria-hidden="true"></span>
			        <label>修改</label>
			    </li>
			    <li id="delRole" class="delRes">
			        <span class="icon-list_shanchu" aria-hidden="true"></span>
			        <label >删除</label>
			    </li>
			    <li id="refresh" class="refresh">
			        <span class="icon-list_shuaxin" aria-hidden="true"></span>
			        <label>刷新</label>
			    </li>
			</ul>
		</div>
	</div>

	<div class="container-fluid table-container">
		<table id="resTable"  cellspacing="" cellpadding="">
						
		</table>
	</div>
</div>

<div class="modal fade modelForm" id="myModal" tabindex="-1" role="dialog" data-backdrop="static" data-keyboard="false" >
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title title">Newly added</h4>
      </div>
      <div class="modal-body">
		    <div class="row">
		        <div class="col-lg-12">
		            <form id="resForm" method="post" class="form-horizontal resForm" action="">
		                <div class="form-group">
		                    <label class="col-lg-3 control-label form-required form-required-4">资源名称</label>
		                    <div class="col-lg-7">
		                    	<input autocomplete="new-password" type="text" class="form-control" name="resName" value="" />
		                    </div>
		                </div>
		                <div class="form-group">
		                    <label class="col-lg-3 control-label form-required form-required-4">资源编码</label>
		                    <div class="col-lg-7">
		                    	<input autocomplete="new-password" type="text" class="form-control" name="resCode" value="" />
		                    </div>
		                </div>
		                <div class="form-group">
		                    <label class="col-lg-3 control-label form-required form-required-4">资源类型</label>
		                    <div class="col-lg-7">
		                    	<select id="resType" name="resType" class="option query form-control">
									<option value="0">页面</option>
									<option value="1">按钮</option>
								</select>
		                    </div>
		                </div>
		                <div class="form-group">
		                    <label class="col-lg-3 control-label form-required form-required-4">访问地址</label>
		                    <div class="col-lg-7">
		                    	<input autocomplete="new-password" type="text" class="form-control" name="uri" value="" />
		                    </div>
		                </div>
		                <div class="form-group">
		                    <label class="col-lg-3 control-label form-required form-required-4">权限字段</label>
		                    <div class="col-lg-7">
		                    	<input autocomplete="new-password" type="text" class="form-control" name="permission" value="" />
		                    </div>
		                </div>
		                <div class="form-group">
		                    <label class="col-lg-3 control-label form-required form-required-4">排序</label>
		                    <div class="col-lg-7">
		                    	<input autocomplete="new-password" type="text" class="form-control" name="resOrder" value="" />
		                    </div>
		                </div>
		                <div class="form-group">
		                    <label class="col-lg-3 control-label ">备注</label>
		                    <div class="col-lg-7">
		                    	<input autocomplete="new-password" type="text" class="form-control" name="remark" value="" />
		                    </div>
		                </div>
		                
             		<!-- 隐藏唯一id -->
					<input autocomplete="new-password" type="hidden" name="pkId" id="pkId" value="" />
		            </form>
		        </div>
		    </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary yes">保存</button>
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
      </div>
    </div>
  </div>
</div>


<div class="modal fade modelForm addResource" id="addResource"  tabindex="-1" role="dialog">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title title">配置资源</h4>
      </div>
      <div class="modal-body">
	    <div class="treeview left" id="treeview">
			
		</div>
		<input autocomplete="new-password" type="hidden" name="pkId" value="" />
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary yes">保存</button>
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
      </div>
    </div>
  </div>
</div>



<div th:replace="common/foot" > 
</div>

<script th:src="@{/3thExt/bootstrap-treeview/js/bootstrap-treeview.min.js}" ></script>
<script th:src="@{/js/system/resource/resource.js}" type="text/javascript"></script>



</body>
</html>